const express = require('express');
const router = express.Router();
const {
   getBills,
   createBill,
   updateBill,
   removeBills
} = require('../route-handlers/bills');

router.route('/byGroup/:groupId').get(getBills).post(createBill);
router.route('/:id').patch(updateBill)
router.route('/delete').delete(removeBills);


module.exports = router;
